package com.example.a.mvp.contract;

import com.example.a.mvp.bean.DailyBean;
import com.example.a.mvp2.base.BaseModel;
import com.example.a.mvp2.base.BasePresenter;
import com.example.a.mvp2.base.BaseView;
import com.example.a.mvp2.base.MvpListener;

import java.util.List;

public interface DailyContract {
    interface DailyModel extends BaseModel {
        void loadDaily(String url, MvpListener<List<DailyBean.StoriesBean>> listener);
    }

    interface DailyView extends BaseView {
        void setData(List<DailyBean.StoriesBean> beanList);
    }

    abstract class DailyPresenter extends BasePresenter<DailyModel, DailyView> {
        protected abstract void loadData(String url);
    }
}
